package com.xsomnus.open.imv2.protocol.request;

import com.xsomnus.open.imv2.protocol.Command;
import com.xsomnus.open.imv2.protocol.Packet;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author @xsomnus666_xiawenye★
 * @since 2019/4/25 0025 11:10
 * 当你发现自己的才华撑不起野心时，就请安静下来学习吧
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class MessageRequestPacket extends Packet {

    private String toUserId;

    private String message;

    public MessageRequestPacket(String toUserId, String message) {
        this.toUserId = toUserId;
        this.message = message;
    }

    @Override
    public Byte getCommand() {
        return Command.MESSAGE_REQUEST;
    }
}
